import request from '../../util/axios'

// 分页查询索引信息 -- 利用查询
export const getUtilizeQueryList = (data) => request({
  url: '/yuyi-usage-boot/api/usage/search',
  method: 'post',
  data: data
})

// 根据条目id查询数据
export const getUtilizeListDet = (idTable, id) => request({
  url: `/yuyi-category-boot/api/arc/data/${idTable}?id=${id}`
})

// 加入利用
export const joinUtilize = (data) => request({
  url: '/yuyi-usage-boot/api/use/registerArc',
  method: 'post',
  data: data
})

// 指定利用
export const appointUtilize = (data) => request({
  url: '/yuyi-usage-boot/api/use/registerArc/assign',
  method: 'post',
  data: data
})
